#include <stdio.h>
#include <stdbool.h>

void sortThreeNumbers(int a, int b, int c) {
    if (a > b) {
        int temp = a;
        a = b;
        b = temp;
    }
    if (a > c) {
        int temp = a;
        a = c;
        c = temp;
    }
    if (b > c) {
        int temp = b;
        b = c;
        c = temp;
    }
    printf("%d %d %d\n", a, b, c);
}

int main() {
    int a = 87, b = 56, c = 99;
    sortThreeNumbers(a, b, c);
    return 0;
}